package cn.qiao.base;

import java.util.Date;

/**
 * desc:
 *选择
 * @author qiao
 * @date 2023年04月19日 21:44
 */
public class Test {

    public static void main(String[] args) {
        Demo demo = new Demo();

        Date hireDay = demo.getHireDay();

        System.out.println(demo.getHireDay());

        double tenYearsInMilliSeconds = 10 * 365.25 * 24 * 60 * 60 * 1000;

        hireDay.setTime(hireDay.getTime() - (long) tenYearsInMilliSeconds);

        System.out.println(demo.getHireDay());

    }

}
